/**********************************************************************************************/
/* FBL_StubRegistry.cpp                                                						  */
/*                                                                       					  */
/* Copyright Paradigma, 1993-2004															  */
/* All Rights Reserved                                                   					  */
/**********************************************************************************************/

#include <VShared/FBL/publ/Headers/StdAfx.h>

// VCLIENT:
#include <VNetwork/Util_Classes/FBL_StubRegistry.h>
#include <VClient/prot/Connection/VC_Connection.h>


/**********************************************************************************************/
FBL_Begin_Namespace

/**********************************************************************************************/
// Singleton of StubRegistry for client side use.
//
ClientStubRegistry* GetClientStubRegistry( I_Connection_Ptr		inConnection )
{
//	ulong z = FBL::IID_I_SqlDatabase;

/*
static ClientStubRegistry_Ptr sStubRegistry = NULL;

	if( sStubRegistry == NULL )
	{
#if DEBUG_NEW == 2 
		StWatchLeakStopper stopper;
#endif // DEBUG_NEW

		sStubRegistry = new ClientStubRegistry;
	}

	return sStubRegistry.get();
*/

	FBL_CHECK( inConnection );
	return inConnection->get_ClientStubRegistry();
}



/**********************************************************************************************/
FBL_End_Namespace